
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
   <meta charset="UTF-8">
   <title>$Title$</title>
   <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
   <script>

      /*$.fn.serializeObject = function () {
         var o = {};
         var a = this.serializeArray();
         $.each(a, function () {
            if (o[this.name]) {
               if (!o[this.name].push) {
                  o[this.name] = [o[this.name]];
               }
               o[this.name].push(this.value || "");
            } else {
               o[this.name] = this.value || "";
            }
         });
         return o;
      };

      var comment = JSON.stringify($("form").serializeObject());
      alert(comment);
      $.ajax({
         type:"POST",
         contentType:"json",
         url:"login.action",
         data:comment,
         dataType:"json",
         success:function(data){
            window.location.href = "success.jsp";
         },
         async:true
      });
*/
   </script>

</head>
<body>

<div style="text-align: center">

<h2>注册界面</h2>
<form action="register.action">
   <input type="hidden" id="op" name="op" value="register">
   <input id="name" name="name"  placeholder="name" ><font color="red">${requestScope.wzc}</font><br>
   <input type="password" id="password" name="password" placeholder="password"><br>
   <input type="submit" value="add" id="btn"><br>
   <a href="login.jsp">back</a>
</form>

</div>
</body>
</html>
